Skip to content

Add constant arrays of enum values for typescript #901

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 16, 2025

Conversation

gwax
Copy link
Contributor

@gwax gwax commented Mar 1, 2025

What kind of change does this PR introduce?

Extends typescript schema generation to provide access to constants representing enum values.

Resolves #832

Resolves #864

What is the current behavior?

Generated schema provides type data for database enums.

What is the new behavior?

Generated schema provides type data and constant values for database enums.

Additional context

@soedirgo soedirgo enabled auto-merge (squash) March 16, 2025 11:21
@soedirgo soedirgo merged commit 9f58aa6 into supabase:master Mar 16, 2025
5 checks passed
@coveralls
Copy link

Pull Request Test Coverage Report for Build 13882835774

Details

  • 14 of 14 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.07%) to 75.4%

Totals Coverage Status
Change from base Build 13716397586: 0.07%
Covered Lines: 4926
Relevant Lines: 6448

💛 - Coveralls

@gwax gwax deleted the gwax/add-enum-constants branch March 17, 2025 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants